<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>Spark Beispiel: Integration</title>
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
		<script type="text/javascript" src="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/lib/jquery.jqplot.js"></script>
		<script type="text/javascript" src="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/lib/jqplot.dateAxisRenderer.js"></script>

		<script type="text/javascript" src="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/lib/jqplot.categoryAxisRenderer.js"></script>
		<script type="text/javascript" src="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/jquery.spark.js"></script>
        <script type="text/javascript" src="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/lib/jqplot/excanvas.js" type="text/javascript"></script>
		<link rel="stylesheet" href="http://km.aifb.kit.edu/sites/spark/docs/screen.css" type="text/css" media="screen, projection">
		<link rel="stylesheet" href="http://km.aifb.kit.edu/sites/spark/docs/print.css" type="text/css" media="print">
		<link rel="stylesheet" href="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/lib/jqplot/jquery.jqplot.css" type="text/css">		
		<link rel="shortcut icon" href="http://km.aifb.kit.edu/sites/spark/docs/favicon.ico" />
<style type="text/css">
table.jqplot-table-legend { width: 10%; font-size: 50% }
</style>
</head>
<body>
	<div class="container">
		<div class="span-24 last prepend-top">
			<header>
				<h1>Spark Beispiel: Integration</h1>
				<p>
					<a href="http://km.aifb.kit.edu/sites/spark/gipfel/index.html">[Startseite]</a>
					&mdash; <a href="beispiel-interaktion.html">[Beispiel: Interaktion]</a>
					&mdash; <a href="beispiel-karte.html">[Beispiel: Karte]</a>
					&mdash; <strong>[Beispiel: Integration]</strong>
				</p>
			</header>
			<p>
			<div class="spark"
 data-spark-endpoint="http://qcrumb.com/sparql"
 data-spark-format="http://129.13.109.100/~dropedia/extensions/Spark/rdf-spark/jquery.spark.datechart.js"
 data-spark-query="
PREFIX  sdmx-measure: &lt;http://purl.org/linked-data/sdmx/2009/measure#&gt;
PREFIX  gesis: &lt;http://lod.gesis.org/vocab#&gt;
PREFIX  itnrw: &lt;http://lod.gesis.org/lodpilot/ITNRW/vocab.rdf#&gt;
PREFIX  itnrw2: &lt;http://lod.gesis.org/vocab#&gt;
PREFIX  rdf:  &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX  qb:   &lt;http://purl.org/linked-data/cube#&gt;
PREFIX  rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
PREFIX  dcterms: &lt;http://purl.org/dc/terms/&gt;

SELECT  ?s ?series ?series_label ?time ?value 

FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=2009&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=2005&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=2002&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1998&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1994&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1990&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1987&gt;
FROM &lt;http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1983&gt;
from &lt;http://lod.gesis.org/lodpilot/ALLBUS/ZA4570agg.rdf#var9&gt;
from &lt;http://lod.gesis.org/gesis-lod-pilot/parteien.rdf&gt;
from &lt;http://gesis-lod.appspot.com/parteien.rdf&gt;


WHERE {
  {
    ?s a qb:Observation .
    ?s dcterms:date ?time .
    ?s itnrw2:partei ?series_label .
    ?series_label rdfs:label ?series .
    ?s sdmx-measure:obsValue ?value .
  } UNION {
    ?s a qb:Observation .
    ?s dcterms:date ?time .
    ?s itnrw:partei ?series_label .
    ?series_label rdfs:label ?series .
    ?s sdmx-measure:obsValue ?value .
  } UNION {
    ?s a qb:Observation .
    ?s dcterms:date ?time .
    ?s gesis:variable &lt;http://lod.gesis.org/lodpilot/ALLBUS/ZA4570agg.rdf#var11&gt; .
    ?s gesis:valuelabel ?series_label .
    ?series_label rdfs:label ?series .
    ?s sdmx-measure:obsValue ?value .
  }
}
ORDER BY (?time)
">
					<em>l&auml;dt...</em>
				</div>
			</p>
			<p>
<strong>Spark</strong> holt sich Daten direkt von den Servern der
<a href="http://www.gesis.org">GESIS</a> und zeigt diese dann als ein Liniendiagramm an.
Hier wird gezeigt, dass man beliebige Datenquellen mischen kann &mdash; in diesem Fall
sind es Umfrageergebnisse zur Einsch&auml;tzung der allgemeinen Wirtschaftslage und
Stimmenzahl der Partein in den Bundestagswahlen.
			</p>
			<footer>
				<p>
					<a href="http://km.aifb.kit.edu/sites/spark/index.html">[Englische
						Startseite]</a> &mdash; <a
						href="http://km.aifb.kit.edu/sites/spark/docs/example/">[Englische
						Beispiele]</a> &mdash; <a href="http://code.google.com/p/rdf-spark/">[Entwicklung]</a>
				</p>
				<p>
					<a href="http://www.aifb.kit.edu"><img alt="KIT" border="0" title="KIT" src="../docs/kit.png" width="70" height="26" /></a>
					Developed 2011 by
					<a href="http://denny.vrandecic.de">Denny Vrande&#269;i&#263;</a>,
					<a href="http://harth.org/andreas/">Andreas Harth</a>
					and
					<a href="http://www.b-kaempgen.de">Benedikt K&auml;mpgen</a>
				</p>
			</footer>
		</div>
	</div>
</body>
</html>
